package com.rephilo;

import com.rephilo.factory.BeanFactory;

import java.lang.reflect.InvocationTargetException;

/**
 * 初始化Bean工厂
 *
 * @author rephilo
 */
public class InitBeanFactory {
    static {
        try {
            BeanFactory.init(ComponentScanConfig.class);
        } catch (NoSuchMethodException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (InvocationTargetException e) {
            e.printStackTrace();
        } catch (InstantiationException e) {
            e.printStackTrace();
        }
    }
}
